/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const orderRouter = {
  path: '/activity',
  component: Layout,
  redirect: '/activity/list',
  name: 'Activity',
  meta: {
    title: '好友助力',
    icon: 'peoples'
  },
  children: [
    {
      path: 'activity/list',
      component: () =>
        import('@/views/activity/list'),
      name: 'CateList',
      meta: { title: '好友助力', noCache: true }
    },
    {
      path: 'activity/create',
      component: () =>
        import('@/views/activity/create'),
      name: 'CreateCate',
      meta: { title: '创建分类', activeMenu: '/activity/list' },
      hidden: true
    },
    {
      path: 'activity/edit/:id(\\d+)',
      component: () =>
        import('@/views/activity/edit'),
      name: 'EditCate',
      meta: { title: '编辑分类', noCache: true, activeMenu: '/activity/list' },
      hidden: true
    },
  ]
}
export default orderRouter
